@extends('admin.base')

@section('content')
    <div class="layui-card">
        <div class="layui-card-header layuiadmin-card-header-auto" style="display:flex;align-items: center;">
            <h2>添加文章</h2>
            @if($property_id)
            <a href="/admin/article?property_id={{$property_id}}" style="margin-left:10px;" class="layui-btn layui-btn-normal layui-btn-sm">楼盘动态列表</a>
            @endif
            <a href="/admin/article" style="margin-left:10px;" class="layui-btn layui-btn-sm">文章列表</a>
        </div>
        <div class="layui-card-body">
            <form class="layui-form" action="{{route('admin.article.store')}}" method="post">
                @include('admin.article._form')
            </form>
        </div>
    </div>
@endsection

@section('script')
    @include('admin.article._js')
@endsection
